home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 11 / FM Towns Free Software Collection 11.iso / t_os / tool / artemis1 / src / sub.h < prev    next >
Encoding:
Text File  |  1993-10-19  |  1.4 KB  |  50 lines

  1. /*
  2.     sub.h
  3. */
  4.  
  5.  
  6. void    page_menu(), page_edit();
  7.  
  8. int getfsize(char *fname);
  9. int resetfattr(char *fname);
  10. bool fexist(char *fname);
  11.  
  12. char    *trans_fname_ext(char *fname, char *newext);
  13.         // ファイル名 fname の拡張子を newext に置き換えたファイル名を返す
  14. void add_fname_ext(char *buf, char *fname, char *newext);
  15.         // ファイル名 fname に拡張子が無い場合、newext を拡張子として加える
  16.  
  17. int        cbuf_init();
  18. void    cbuf_clear();
  19. char    *cbuf_adrs(int x, int y);
  20. int        cbuf_getlinesize();
  21. int        cbuf_mix(int c0, int rate, int maxconc);
  22. #define    cbuf2conc(a)    ((a)+1)
  23. #define    conc2cbuf(a)    ((a)==0?0:(a)-1)
  24.  
  25. void     scrollForCsr(int xlen,int ylen);
  26. void    limitCsrPos();    // カーソルの座標の制限処理
  27.  
  28. #define    AREA_BOX        0
  29. #define    AREA_POLYGON    1
  30.  
  31. int        area_init();
  32. int        area_input(int type);
  33.         // type  0=AREA_BOX  1=AREA_POLYGON
  34.         // 返値: 0=承認  1=取消
  35. bool    area_chkxy(int x, int y);    // (x,y) が領域指定されているかを調べる
  36. bool    area_chkxy2(int x,int y);    // (x,y)-(x+1,y+1)が領域指定されているか
  37. void    area_getboundxy(int *x1, int *y1, int *x2, int *y2);
  38. int        area_chkxylen(int x,int xmax,int y,bool nega);
  39. // (x,y) から右に何ドット連続して指定されているかを調べる(or 0)
  40. // nega: 働きを逆にする(領域指定されていない点の連続数を求める)
  41. void    area_drawbound();
  42.  
  43. void ARTsetintvector( void );
  44. void ARTresetintvector( void );
  45.  
  46. int mathtbl_init(void);
  47. deci atan512(deci theta);
  48.  
  49. void hline_func(int x1, int x2, int y, void func(int x1, int x2, int y)!);
  50.